.get() .uri("/users") .exchange() .then(this::httpStatus); assertThat(response.block(ONE_SECOND)).isEqualTo(HttpStatus.UNAUTHORIZED); }
.get() .uri("/users") .exchange() .assertStatus().isUnauthorized(); } @Test